﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;

namespace Windows8Accelerator.Core.Xaml.Controls
{
    public interface ISuperGroupStyleSelectorOwner
    {
        SuperGroupStyle DefaultGroupStyle { get; }
        DataTemplate GroupHeaderTemplate { get; set; }
    }

    public class SuperGroupStyleSelector : GroupStyleSelector
    {
        private ISuperGroupStyleSelectorOwner Owner;

        public SuperGroupStyleSelector(ISuperGroupStyleSelectorOwner owner)
        {
            Owner = owner;
        }
        protected override GroupStyle SelectGroupStyleCore(object group, uint level)
        {
            return Owner.DefaultGroupStyle;
        }
    }
}
